package com.situ.springboot.mapper;

import com.situ.springboot.pojo.Blog;
import com.situ.springboot.pojo.query.BlogQuery;
import com.situ.springboot.pojo.vo.BlogTypeCountVO;

import java.util.List;

//MyBatis 对应对数据库的增删改查
//IBlogDao   BlogDaoImpl
public interface BlogMapper {
    List<Blog> list(BlogQuery blogQuery);

    void deleteById(Integer id);

    void add(Blog blog);

    List<BlogTypeCountVO> selectBlogTypeCount();
}
